﻿using System;

namespace ObserverPattern
{
    class Program
    {
        static void Main(string[] args)
        {
            BankAccount ba = new BankAccount(200);
            ba.AddObserver(new Emailer("daipinxuan@foxmail.com"));
            ba.AddObserver(new Mobile(18651861923));
            ba.WithDraw(); 
            Console.WriteLine("==============================");
            Console.ReadLine();
        }
    }
}
